{% extends "layouts/bbs.html" %}
{% load navtag %}
{% block nav %}
  {% nav "cooperate" %}
  {{ block.super }}
{% endblock %}

{% block content %}
  {% if message %}
    <div class="alert alert-danger" role="alert">
      {{ message | safe }}
    </div>
  {% endif %}
  <form action="/bbs/new" method="post">
    <input type="hidden" value='{{ csrf_token }}' , name="csrfmiddlewaretoken">
    <input type="hidden" value="{{ request.user.pk }}" , name="user">
    <div class="form-group">
      <div class="col-md-12 select-input">
        <input class="form-control" type="text" placeholder="题目" name="title">
        <select name="type" class="form-control">
          <option>请选择板块</option>
          <option value="职场">职场故事</option>
          <option value="职场">职场</option>
          <option value="职场">职场</option>
          <option value="职场">职场</option>
          <option value="职场">职场</option>
        </select>
      </div>
    </div>
    <div class="form-group" style="padding-right: 10px;padding-left: 8px;">
      {{ bbs.content }}
    </div>
    <div class="form-group">
      <div class="pull-right">
        <button class="btn btn-info" type="submit" style="float: right;">发帖</button>
        <div class="checkbox checkbox-success" style="float: right;margin-right: 30px;">
          <input id="checkbox2" type="checkbox" name="anonymous">
          <label for="checkbox2">匿名</label>
        </div>
      </div>
    </div>
  </form>
{% endblock %}